﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SetManagerCourse.aspx.cs"
    Inherits="PowerCreator.LMS.Web.SetManagerCourse" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>设置管理课程</title>
    <link href="../../css/default.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" class="colorbg">
            <tr>
                <th>
                    <img src="../../images/dh.gif" alt="导航图片" width="18" height="18" /></th>
                <td>
                    您的位置:后台管理 &gt; 权限管理 &gt; 设置管理课程</td>
            </tr>
        </table>
        <br />
        <table border="0" cellpadding="0" cellspacing="0" width="98%" align="Center" class="default_table1">
            <tr>
                <td colspan="2" class="left10px">
                    设置管理课程</td>
            </tr>
            <tr>
                <th class="talbeaddth">
                    当前角色名称</th>
                <td class="talbeaddtd" >
                    <asp:Label ID="lblRoleName" runat="server"></asp:Label>&nbsp;</td>
            </tr>
            <tr>
                <th class="talbeaddth" valign="top">
                    当前管理课程</th>
                <td class="talbeaddtd">
                    <asp:GridView ID="gvCourse" runat="server" AutoGenerateColumns="False" GridLines="None"
                        BorderWidth="0px" CssClass="List-GridView" OnRowCommand="gvCourse_RowCommand">
                        <Columns>
                            <asp:BoundField DataField="CourseID" HeaderText="课程编号" />
                            <asp:BoundField DataField="CourseName" HeaderText="课程名称" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnDelte" runat="server" CommandName="mydelete" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CourseID") %>' >删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="2" class="left10pxnew">
                    继续添加课程</td>
            </tr>
            <tr>
                <th class="talbeaddth">
                    选择专业</th>
                <td class="talbeaddtd">
                    <asp:ListBox ID="lboxCourseType" runat="server" Width="232px"></asp:ListBox>
                    &nbsp;
                    </td>
            </tr>
            <tr>
                <th class="talbeaddth" >
                    添加管理课程</th>
                <td class="talbeaddtd">
                    <asp:GridView ID="gvCourse1" runat="server" AutoGenerateColumns="False" GridLines="None"
                        BorderWidth="0px" CssClass="List-GridView" OnRowCommand="gvCourse1_RowCommand">
                        <Columns>
                            <asp:BoundField DataField="CourseID" HeaderText="课程编号" />
                            <asp:BoundField DataField="CourseName" HeaderText="课程名称" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkbtnAdd" runat="server" CommandName="myadd" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "CourseID") %>' >添加到管理</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            该专业下没有符合条件的课程
                        </EmptyDataTemplate>
                    </asp:GridView>
                    &nbsp;
                    <br />
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center"
                        OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left" Width="100%"
                        meta:resourceKey="AspNetPager1" Style="font-size: 14px" InputBoxStyle="width:19px"
                        CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%" FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                    <br />
                </td>
            </tr>
            <tr>
                <td class="btncenter" colspan="2" style=" border-top: 1px solid  #a8b1ba;border-left: 1px solid  #a8b1ba; height: 20px;" >                 
                    <asp:Button ID="btnBack" runat="server" CssClass="mybuttons" Text="返回" OnClick="btnBack_Click" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
